<?php

namespace App\Model;

use Illuminate\Database\Eloquent\Model;

class Message extends Model
{
    protected $table = 'message';

    protected $fillable = ['id', 'class_id', 'student_id', 'teacher_id', 'content', 'created_at', 'updated_at'];

    public function student() {
        return $this->belongsTo('App\Model\Student');
    }
}
